home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ZoomedVideo.p < prev   
Encoding:
Text File  |  1998-08-17  |  3.8 KB  |  143 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ZoomedVideo.p
  3.  
  4.      Contains:    PC Card Family Zoomed Video Driver Interface
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1996-1998 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ZoomedVideo;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __ZOOMEDVIDEO__}
  27. {$SETC __ZOOMEDVIDEO__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ZoomedVideoIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __DEVICES__}
  37. {$I Devices.p}
  38. {$ENDC}
  39.  
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45.  
  46. {  Control codes  }
  47.  
  48.  
  49. CONST
  50.     cscZVVideoEnable            = 2;                            {  Used to enable or disable ZV Video }
  51.     cscZVSetCurrentAnalogValue    = 3;                            {  Used to set brightness, contrast, etc. }
  52.     cscZVSetInput                = 9;                            {  Set video source to selected input }
  53.     cscZVSetInputStandard        = 11;                            {  Set the input to NTSC, PAL, or SECAM }
  54.     cscZVGetMaxSourceRect        = 12;                            {  Get Maximum Source Rect }
  55.  
  56. {  Status codes }
  57.     cscZVGetVideoEnable            = 2;                            {  Indicates whether ZV Video is enabled }
  58.     cscZVGetCurrentAnalogValue    = 3;                            {  Used to get brightness, contrast, etc. }
  59.     cscZVGetDefaultAnalogValue    = 4;
  60.     cscZVGetVSyncState            = 5;                            {  Used to look for a Vertical Sync on ZV Video }
  61.     cscZVGetInfo                = 6;                            {  Returns the ZV Information }
  62.     cscZVGetInputFlags            = 7;                            {  Returns the input flags. }
  63.     cscZVGetNumberOfInputs        = 8;                            {  Returns the number of video inputs }
  64.     cscZVGetInput                = 9;                            {  Zero-based input number }
  65.     cscZVGetInputFormat            = 10;                            {  Returns whether input is compsite/s-video }
  66.  
  67.  
  68. {
  69.   -----------------------------------------------------------------
  70.    Additional parameters for csInfoZV control call
  71.       A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
  72.       which must be filled by the driver in response to this call.
  73. }
  74.  
  75.  
  76. TYPE
  77.     ZVFeatures                            = UInt32;
  78.  
  79. CONST
  80.     kZVHasAudio                    = $01;
  81.     kZVHasTVTuner                = $02;
  82.     kZVHasContrast                = $00010000;
  83.     kZVHasBrightness            = $00020000;
  84.     kZVHasSharpness                = $00040000;
  85.     kZVHasSaturation            = $00080000;
  86.     kZVHasHue                    = $00100000;
  87.  
  88.  
  89.  
  90. TYPE
  91.     ZVInfoPtr = ^ZVInfo;
  92.     ZVInfo = RECORD
  93.         features:                ZVFeatures;
  94.         currentFlags:            UInt32;
  95.         activeRect:                Rect;
  96.         isInterlaced:            BOOLEAN;
  97.         filler:                    SInt8;
  98.         reserved1:                UInt32;
  99.         reserved2:                UInt32;
  100.     END;
  101.  
  102.     ZVFlagRecordPtr = ^ZVFlagRecord;
  103.     ZVFlagRecord = RECORD
  104.         csFlag:                    BOOLEAN;
  105.         filler:                    SInt8;
  106.     END;
  107.  
  108. {
  109.   -----------------------------------------------------------------
  110.    Additional definitions for "AnalogCtlZV" control calls
  111.       A pointer to a ZVSetAnalogControlParam is passed to the driver
  112.       whenever the system needs to adjust one of the analog settings.
  113. }
  114.     ZVAnalogControlSelector                = UInt16;
  115.  
  116. CONST
  117.     kZVContrast                    = 1;                            {  Range:  0x0 <= no change to image, larger values increase the contrast }
  118.     kZVBrightness                = 2;                            {  Range:  0x0 <= darkest setting, 0xffff = lightest setting }
  119.     kZVSharpness                = 3;                            {  Range:  0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering }
  120.     kZVSaturation                = 4;                            {  Range:  0x0 <= min saturation, 0xffff <= max saturation         }
  121.     kZVHue                        = 5;                            {  Range:  0x0 <= -180º shift in hue, 0xffff <= 179º shift, 0x8000 <=0º shift }
  122.     kZVBlackLevel                = 6;                            {  Range:  0x0 <= max black, 0xffff <= min black level }
  123.     kZVWhiteLevel                = 7;                            {  Range:  0x0 <= min white, 0xffff <= max white level }
  124.  
  125.  
  126. TYPE
  127.     ZVAnalogControlRecordPtr = ^ZVAnalogControlRecord;
  128.     ZVAnalogControlRecord = RECORD
  129.         whichControl:            ZVAnalogControlSelector;
  130.         value:                    UInt16;
  131.     END;
  132.  
  133. {$ALIGN RESET}
  134. {$POP}
  135.  
  136. {$SETC UsingIncludes := ZoomedVideoIncludes}
  137.  
  138. {$ENDC} {__ZOOMEDVIDEO__}
  139.  
  140. {$IFC NOT UsingIncludes}
  141.  END.
  142. {$ENDC}
  143.